using CoreCms.Net.Jwt;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Silky.Core.Modularity;

namespace CoreCms.Net.Identity
{
    [DependsOn(typeof(JwtModule))]
    public class IdentityModule : HttpSilkyModule
    {
        public override void ConfigureServices(IServiceCollection services, IConfiguration configuration)
        {
            services.AddSilkyIdentity();
        }

        public override void Configure(IApplicationBuilder application)
        {
            application.UseSilkyIdentity();
        }
    }
}